package com.qf.cosmetology.result;

/**
 * @Author: xiyang
 * @FileName: ResponseData
 * @Date: Created in 2021/6/24 14:56
 * @Vserion: \
 * @Description: TODO
 */
public class ResponseData {

    private String ecode;

    private String errorinfo;

    private Object data;

    public ResponseData(String ecode, String errorinfo, Object data) {
        this.ecode = ecode;
        this.errorinfo = errorinfo;
        this.data = data;
    }
    public ResponseData(String ecode, String errorinfo) {
        this.ecode = ecode;
        this.errorinfo = errorinfo;
    }
    public ResponseData(ResponseCode responseCode, Object data) {
        this.ecode = responseCode.getEcode();
        this.errorinfo = responseCode.getErrorinfo();
        this.data = data;
    }
    public ResponseData(ResponseCode responseCode) {
        this.ecode = responseCode.getEcode();
        this.errorinfo = responseCode.getErrorinfo();
    }



    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getErrorinfo() {
        return errorinfo;
    }

    public void setErrorinfo(String errorinfo) {
        this.errorinfo = errorinfo;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
